package com.vue.vuedemo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.vue.vuedemo.map.UserMapper;
import com.vue.vuedemo.pojo.User;

@Service
public class UserService {
	
	@Autowired
	private UserMapper userMapper;

    public User getUserByUsername(String username,String password){
    	
    	User user = userMapper.userLogin(username, password);
    	
        if (user != null ){
            return user;
        }
        return null;
    }
}

